package com.example.plcopne.ui

import android.os.Bundle
import com.example.plcopne.R
import kotlinx.android.synthetic.main.activity_word.*

class WordActivity : BaseActivity() {


    override fun getContentView(): Int {
        return R.layout.activity_word
    }

    override fun init(savedInstanceState: Bundle?) {

        val data = intent.getStringExtra("data")
        textView2.text = data
        val title = when (intent.getIntExtra("type", -1)) {
            7 -> {
                "充电测试"
            }
            8 -> {
                "LED测试"
            }
            else -> {
                "其它测试"
            }
        }
        settitle(title)
    }
}